package cn.stylefeng.guns.modular.yingbao.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 消息存储表
 * </p>
 *
 * @author jj
 * @since 2019-12-20
 */
@TableName("yingbao_sys_user_message")
public class SysUserMessage implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ID_WORKER)
    private Long id;

    /**
     * 用户id
     */
    @TableField("userid")
    private Long userid;

    /**
     * 消息体
     */
    @TableField("message")
    private String message;

    /**
     * 状态 
     */
    @TableField("stuats")
    private Integer stuats;

    /**
     * 时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserid() {
        return userid;
    }

    public void setUserid(Long userid) {
        this.userid = userid;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Integer getStuats() {
        return stuats;
    }

    public void setStuats(Integer stuats) {
        this.stuats = stuats;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "SysUserMessage{" +
        "id=" + id +
        ", userid=" + userid +
        ", message=" + message +
        ", stuats=" + stuats +
        ", createTime=" + createTime +
        "}";
    }
}
